require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('../css/commCss/basic.css')
require('../libs/iconfont/iconfont.css')
require('../css/sportsData.less')

const axios = require('axios')


document.addEventListener('DOMContentLoaded', function () {
    let back = document.querySelector('.back')
    let header = document.querySelector('.header')
    const serUrl = 'http://139.9.177.51:8099'
    const sportsData = '/sport/data/'
    const userId = localStorage.getItem('userId')

    back.addEventListener('click', function () {
        history.go(-1)
    })
    echartBox.style.marginTop = header.clientHeight + 'px'

    // 渲染数据
    axios.get(serUrl+sportsData+userId).then(function (res) {
        console.log(res);
    })
})